package cn.shop.core.controller;

import java.util.List;
import java.util.Map;

import cn.shop.core.service.OrderMangamentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/order/")
public class OrderAdminController {
	/**
	 * 订单管理的业务逻辑接口
	 */
	@Autowired
	private OrderMangamentService omservice;
	
	@RequestMapping("list.do")
	public String list(Model model){
		List<Map> list = omservice.list(null);
		
		model.addAttribute("list", list);
		
		return "order/order_list";
	}
	
}
